.class public Lcom/waiqin365/compons/camera/CameraAlbumActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private a:Landroid/widget/GridView;

.field private b:Lcom/waiqin365/compons/camera/h;

.field private c:Ljava/util/ArrayList;

.field private d:Ljava/lang/String;

.field private e:Ljava/util/ArrayList;

.field private f:I

.field private g:Landroid/app/ProgressDialog;

.field private h:Landroid/widget/ImageView;

.field private i:Landroid/widget/ImageView;

.field private j:Landroid/graphics/Bitmap;

.field private k:Lcom/waiqin365/compons/camera/d;

.field private l:Ljava/lang/String;

.field private m:Landroid/widget/TextView;

.field private n:Landroid/widget/LinearLayout;

.field private o:Landroid/widget/TextView;

.field private p:Landroid/widget/TextView;

.field private q:Landroid/widget/RelativeLayout;

.field private r:I

.field private s:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    new-instance v0, Lcom/waiqin365/compons/camera/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/compons/camera/a;-><init>(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)V

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->s:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/GridView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a:Landroid/widget/GridView;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/compons/camera/CameraAlbumActivity;Lcom/waiqin365/compons/camera/d;)Lcom/waiqin365/compons/camera/d;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->k:Lcom/waiqin365/compons/camera/d;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/compons/camera/CameraAlbumActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    invoke-direct {p0, p1}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private a(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    const/16 v0, 0x2e

    invoke-virtual {p1, v0}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v0

    const/4 v1, -0x1

    if-le v0, v1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-ge v0, v1, :cond_0

    invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    :cond_0
    const-string/jumbo v0, ".jpg"

    goto :goto_0
.end method

.method private a(Landroid/content/Intent;)V
    .locals 3

    new-instance v0, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "returnTo"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object p1, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->back()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/compons/camera/CameraAlbumActivity;Landroid/content/Intent;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Lcom/waiqin365/compons/camera/d;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->k:Lcom/waiqin365/compons/camera/d;

    return-object v0
.end method

.method private b()V
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x1

    const v0, 0x7f0c009a

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/GridView;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a:Landroid/widget/GridView;

    invoke-static {p0}, Lcom/waiqin365/compons/camera/b/b;->a(Landroid/content/Context;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectedList"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectedList"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    :cond_0
    iget v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->r:I

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/2addr v0, v1

    iput v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->r:I

    new-instance v0, Lcom/waiqin365/compons/camera/h;

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1, v2}, Lcom/waiqin365/compons/camera/h;-><init>(Lcom/waiqin365/compons/camera/CameraAlbumActivity;Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->b:Lcom/waiqin365/compons/camera/h;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a:Landroid/widget/GridView;

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->b:Lcom/waiqin365/compons/camera/h;

    invoke-virtual {v0, v1}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a:Landroid/widget/GridView;

    invoke-virtual {v0, p0}, Landroid/widget/GridView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    const v0, 0x7f0c0652

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f08005c

    invoke-virtual {p0, v1}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c0650

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->h:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->h:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0654

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->i:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->i:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    const v0, 0x7f0c009c

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->m:Landroid/widget/TextView;

    const v0, 0x7f0c009f

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->o:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c009d

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    const v0, 0x7f0c009b

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->q:Landroid/widget/RelativeLayout;

    const v0, 0x7f0c009e

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->o:Landroid/widget/TextView;

    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    invoke-virtual {v0, v4}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_1
    return-void
.end method

.method static synthetic c(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method private c()V
    .locals 4

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v2, "from"

    const-string/jumbo v3, "album"

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v2, "nums"

    iget v3, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->r:I

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "photolist"

    iget-object v3, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v2, "viewSelect"

    const/4 v3, 0x1

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const-string/jumbo v2, "selectedList"

    iget-object v3, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putStringArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    const/4 v1, 0x0

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->r:I

    return v0
.end method

.method private d()V
    .locals 3

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result v1

    if-eqz v1, :cond_1

    new-instance v1, Lcom/waiqin365/compons/camera/c;

    invoke-direct {v1, p0}, Lcom/waiqin365/compons/camera/c;-><init>(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)V

    invoke-virtual {v0, v1}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object v1

    const/4 v0, 0x0

    :goto_0
    array-length v2, v1

    if-ge v0, v2, :cond_1

    aget-object v2, v1, v0

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_0

    aget-object v2, v1, v0

    invoke-virtual {v2}, Ljava/io/File;->delete()Z

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method static synthetic e(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->m:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/TextView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->o:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/widget/LinearLayout;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/app/ProgressDialog;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->g:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic k(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->f:I

    return v0
.end method

.method static synthetic l(Lcom/waiqin365/compons/camera/CameraAlbumActivity;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->s:Landroid/os/Handler;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 5

    invoke-direct {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lez v1, :cond_0

    const-string/jumbo v1, "\u4fdd\u5b58\u4e2d..."

    const-string/jumbo v2, "\u8bf7\u7a0d\u5019..."

    const/4 v3, 0x1

    const/4 v4, 0x0

    invoke-static {p0, v1, v2, v3, v4}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->g:Landroid/app/ProgressDialog;

    new-instance v1, Lcom/waiqin365/compons/camera/b;

    invoke-direct {v1, p0, v0}, Lcom/waiqin365/compons/camera/b;-><init>(Lcom/waiqin365/compons/camera/CameraAlbumActivity;Ljava/util/ArrayList;)V

    invoke-virtual {v1}, Lcom/waiqin365/compons/camera/b;->start()V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3

    const/4 v1, 0x1

    const/4 v2, 0x0

    sparse-switch p2, :sswitch_data_0

    :goto_0
    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    return-void

    :sswitch_0
    const-string/jumbo v0, "selectedList"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->o:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_1
    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->b:Lcom/waiqin365/compons/camera/h;

    invoke-virtual {v0}, Lcom/waiqin365/compons/camera/h;->notifyDataSetChanged()V

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->p:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->o:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEnabled(Z)V

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->n:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setEnabled(Z)V

    goto :goto_1

    :sswitch_1
    const-string/jumbo v0, "selectedList"

    invoke-virtual {p3, v0}, Landroid/content/Intent;->getStringArrayListExtra(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a()V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        -0x1 -> :sswitch_0
        0x64 -> :sswitch_1
    .end sparse-switch
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-direct {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c()V

    goto :goto_0

    :sswitch_1
    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a()V

    goto :goto_0

    :sswitch_2
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a(Landroid/content/Intent;)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c009c -> :sswitch_0
        0x7f0c009d -> :sswitch_1
        0x7f0c0650 -> :sswitch_2
    .end sparse-switch
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->requestWindowFeature(I)Z

    const v0, 0x7f030018

    invoke-virtual {p0, v0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    const-string/jumbo v1, "pwidth"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->f:I

    const-string/jumbo v1, "nums"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I

    move-result v1

    iput v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->r:I

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/fiberhome/gaea/client/b/a/a;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    const-string/jumbo v1, "viewId"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->l:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "usepath"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/io/File;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result v2

    if-nez v2, :cond_0

    :try_start_0
    invoke-virtual {v1}, Ljava/io/File;->createNewFile()Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->l:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/c;->b(Ljava/lang/String;Ljava/lang/String;)Z

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->l:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "/files/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->d:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_1

    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    :cond_1
    invoke-direct {p0}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->b()V

    return-void

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 6

    const/4 v0, 0x0

    const/4 v5, 0x0

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    iget-object v1, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a:Landroid/widget/GridView;

    invoke-virtual {v1}, Landroid/widget/GridView;->getChildCount()I

    move-result v3

    move v2, v0

    :goto_0
    if-ge v2, v3, :cond_2

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->a:Landroid/widget/GridView;

    invoke-virtual {v0, v2}, Landroid/widget/GridView;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Landroid/widget/RelativeLayout;

    const/4 v0, 0x0

    :try_start_0
    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v4

    if-eqz v4, :cond_0

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v4, 0x0

    invoke-virtual {v0, v4}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V

    :cond_0
    const/4 v0, 0x1

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/graphics/drawable/Drawable;->setCallback(Landroid/graphics/drawable/Drawable$Callback;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_1
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    :cond_2
    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->j:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->j:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->recycle()V

    :cond_3
    iput-object v5, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->j:Landroid/graphics/Bitmap;

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 5

    const/4 v4, 0x0

    iget-object v0, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->b:Lcom/waiqin365/compons/camera/h;

    invoke-virtual {v0, p3}, Lcom/waiqin365/compons/camera/h;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/HashMap;

    const-string/jumbo v1, "image_id"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/compons/camera/CameraPreviewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    new-instance v1, Landroid/os/Bundle;

    invoke-direct {v1}, Landroid/os/Bundle;-><init>()V

    const-string/jumbo v2, "from"

    const-string/jumbo v3, "album"

    invoke-virtual {v1, v2, v3}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    const-string/jumbo v2, "position"

    invoke-virtual {v0, v2, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "nums"

    iget v3, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->r:I

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    const-string/jumbo v2, "photolist"

    iget-object v3, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->c:Ljava/util/ArrayList;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    const-string/jumbo v2, "selectedList"

    iget-object v3, p0, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putStringArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    invoke-virtual {v0, v1}, Landroid/content/Intent;->putExtras(Landroid/os/Bundle;)Landroid/content/Intent;

    invoke-virtual {p0, v0, v4}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040027

    invoke-virtual {p0, v0, v4}, Lcom/waiqin365/compons/camera/CameraAlbumActivity;->overridePendingTransition(II)V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 1

    invoke-super {p0, p1, p2}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v0

    return v0
.end method
